package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * ClassName: shoppingCart
 * Package: com.sky.service
 * Description:
 *
 * @Author 八云
 * @Create 2025/3/23 19:22
 * @Version 1.0
 */
public interface ShoppingCartService {

    // 添加购物车
    void add(ShoppingCartDTO shoppingCartDTO);

    // 查询购物车
    List<ShoppingCart> list();

    // 清空购物车
    void clean();

    // 减少购物车
    void sub(ShoppingCartDTO shoppingCartDTO);
}
